<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GrPPI: Map/reduce pattern</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GrPPI
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Generic and Reusable Parallel Pattern Interface</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Map/reduce pattern<div class="ingroups"><a class="el" href="group__data__patterns.html">Data parallel patterns</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_interface.html">Interface</a> for applyinng the md_map-reduce.  
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for Map/reduce pattern:</div>
<div class="dyncontent">
<div class="center"><img src="group__mapreduce__pattern.png" border="0" usemap="#agroup____mapreduce____pattern" alt=""/></div>
<map name="agroup____mapreduce____pattern" id="agroup____mapreduce____pattern">
<area shape="rect" href="group__data__patterns.html" title="Patterns for data parallel processing." alt="" coords="5,5,152,31"/>
<area shape="rect" title="Interface for applyinng the md_map&#45;reduce." alt="" coords="200,5,335,31"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga1b61366b1688dc6d2d8dc6cbf785bf10"><td class="memTemplParams" colspan="2">template&lt;typename Execution , typename ... InputIterators, typename Identity , typename Transformer , typename Combiner , requires_iterators&lt; InputIterators... &gt;  = 0&gt; </td></tr>
<tr class="memitem:ga1b61366b1688dc6d2d8dc6cbf785bf10"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__mapreduce__pattern.html#ga1b61366b1688dc6d2d8dc6cbf785bf10">grppi::map_reduce</a> (const Execution &amp;ex, std::tuple&lt; InputIterators... &gt; firsts, std::size_t size, Identity &amp;&amp;identity, Transformer &amp;&amp;transform_op, Combiner &amp;&amp;combine_op)</td></tr>
<tr class="memdesc:ga1b61366b1688dc6d2d8dc6cbf785bf10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke md_map-reduce on a data sequence.  <a href="group__mapreduce__pattern.html#ga1b61366b1688dc6d2d8dc6cbf785bf10">More...</a><br /></td></tr>
<tr class="separator:ga1b61366b1688dc6d2d8dc6cbf785bf10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga482a7464f7fe043ee62e179db0ddcb07"><td class="memTemplParams" colspan="2">template&lt;typename Execution , typename ... InputIterators, typename InputIt , typename Identity , typename Transformer , typename Combiner , requires_iterators&lt; InputIterators... &gt;  = 0, requires_iterator&lt; InputIt &gt;  = 0&gt; </td></tr>
<tr class="memitem:ga482a7464f7fe043ee62e179db0ddcb07"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__mapreduce__pattern.html#ga482a7464f7fe043ee62e179db0ddcb07">grppi::map_reduce</a> (const Execution &amp;ex, std::tuple&lt; InputIterators... &gt; firsts, InputIt last, Identity &amp;&amp;identity, Transformer &amp;&amp;transform_op, Combiner &amp;&amp;combine_op)</td></tr>
<tr class="memdesc:ga482a7464f7fe043ee62e179db0ddcb07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke md_map-reduce on a data sequence.  <a href="group__mapreduce__pattern.html#ga482a7464f7fe043ee62e179db0ddcb07">More...</a><br /></td></tr>
<tr class="separator:ga482a7464f7fe043ee62e179db0ddcb07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35ec6ba7101c5fb6e21173914e7952ba"><td class="memTemplParams" colspan="2">template&lt;typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , requires_iterator&lt; InputIterator &gt;  = 0&gt; </td></tr>
<tr class="memitem:ga35ec6ba7101c5fb6e21173914e7952ba"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__mapreduce__pattern.html#ga35ec6ba7101c5fb6e21173914e7952ba">grppi::map_reduce</a> (const Execution &amp;ex, InputIterator first, InputIterator last, Identity &amp;&amp;identity, Transformer &amp;&amp;transform_op, Combiner &amp;&amp;combine_op)</td></tr>
<tr class="memdesc:ga35ec6ba7101c5fb6e21173914e7952ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke md_map-reduce on a data sequence.  <a href="group__mapreduce__pattern.html#ga35ec6ba7101c5fb6e21173914e7952ba">More...</a><br /></td></tr>
<tr class="separator:ga35ec6ba7101c5fb6e21173914e7952ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4b2269da4d4f05ad635394e8e7762c7c"><td class="memTemplParams" colspan="2">template&lt;typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , typename ... OtherInputIterators, requires_iterator&lt; InputIterator &gt;  = 0&gt; </td></tr>
<tr class="memitem:ga4b2269da4d4f05ad635394e8e7762c7c"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__mapreduce__pattern.html#ga4b2269da4d4f05ad635394e8e7762c7c">grppi::map_reduce</a> (const Execution &amp;ex, InputIterator first, InputIterator last, Identity &amp;&amp;identity, Transformer &amp;&amp;transform_op, Combiner &amp;&amp;combine_op, OtherInputIterators ... other_firsts)</td></tr>
<tr class="memdesc:ga4b2269da4d4f05ad635394e8e7762c7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke md_map-reduce on multiple data sequences.  <a href="group__mapreduce__pattern.html#ga4b2269da4d4f05ad635394e8e7762c7c">More...</a><br /></td></tr>
<tr class="separator:ga4b2269da4d4f05ad635394e8e7762c7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p><a class="el" href="class_interface.html">Interface</a> for applyinng the md_map-reduce. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga35ec6ba7101c5fb6e21173914e7952ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga35ec6ba7101c5fb6e21173914e7952ba">&#9670;&nbsp;</a></span>map_reduce() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , requires_iterator&lt; InputIterator &gt;  = 0&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::map_reduce </td>
          <td>(</td>
          <td class="paramtype">const Execution &amp;&#160;</td>
          <td class="paramname"><em>ex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>last</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Identity &amp;&amp;&#160;</td>
          <td class="paramname"><em>identity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke md_map-reduce on a data sequence. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Execution</td><td>Execution type. </td></tr>
    <tr><td class="paramname">InputIterator</td><td>Iterator type used for the input sequence. </td></tr>
    <tr><td class="paramname">Identity</td><td>Type for the identity value. </td></tr>
    <tr><td class="paramname">Transformer</td><td>Callable type for the transformation operation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable type for the combination operation of the reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ex</td><td>Execution policy object. </td></tr>
    <tr><td class="paramname">first</td><td>Iterator to the first element in the input sequence. </td></tr>
    <tr><td class="paramname">last</td><td>Iterator to one past the end of the input sequence. </td></tr>
    <tr><td class="paramname">identity</td><td>Identity value for the combination operation. </td></tr>
    <tr><td class="paramname">transf_op</td><td>Transformation operation. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combination operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result of the map/reduce operation. </dd></dl>

</div>
</div>
<a id="ga4b2269da4d4f05ad635394e8e7762c7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4b2269da4d4f05ad635394e8e7762c7c">&#9670;&nbsp;</a></span>map_reduce() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , typename ... OtherInputIterators, requires_iterator&lt; InputIterator &gt;  = 0&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::map_reduce </td>
          <td>(</td>
          <td class="paramtype">const Execution &amp;&#160;</td>
          <td class="paramname"><em>ex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>last</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Identity &amp;&amp;&#160;</td>
          <td class="paramname"><em>identity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OtherInputIterators ...&#160;</td>
          <td class="paramname"><em>other_firsts</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke md_map-reduce on multiple data sequences. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Execution</td><td>Execution type. </td></tr>
    <tr><td class="paramname">InputIterator</td><td>Iterator type used for the input sequence. </td></tr>
    <tr><td class="paramname">Identity</td><td>Type for the identity value. </td></tr>
    <tr><td class="paramname">Transformer</td><td>Callable type for the transformation operation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable type for the combination operation of the reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ex</td><td>Execution policy object. </td></tr>
    <tr><td class="paramname">first</td><td>Iterator to the first element in the input sequence. </td></tr>
    <tr><td class="paramname">last</td><td>Iterator to one past the end of the input sequence. </td></tr>
    <tr><td class="paramname">identity</td><td>Identity value for the combination operation. </td></tr>
    <tr><td class="paramname">transf_op</td><td>Transformation operation. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combination operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result of the map/reduce operation. </dd></dl>

</div>
</div>
<a id="ga482a7464f7fe043ee62e179db0ddcb07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga482a7464f7fe043ee62e179db0ddcb07">&#9670;&nbsp;</a></span>map_reduce() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Execution , typename ... InputIterators, typename InputIt , typename Identity , typename Transformer , typename Combiner , requires_iterators&lt; InputIterators... &gt;  = 0, requires_iterator&lt; InputIt &gt;  = 0&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::map_reduce </td>
          <td>(</td>
          <td class="paramtype">const Execution &amp;&#160;</td>
          <td class="paramname"><em>ex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::tuple&lt; InputIterators... &gt;&#160;</td>
          <td class="paramname"><em>firsts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIt&#160;</td>
          <td class="paramname"><em>last</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Identity &amp;&amp;&#160;</td>
          <td class="paramname"><em>identity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke md_map-reduce on a data sequence. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Execution</td><td>Execution type. </td></tr>
    <tr><td class="paramname">InputIterators</td><td>Iterators types used for the input sequences. </td></tr>
    <tr><td class="paramname">InputIt</td><td>Iterator type used for the fisrt input sequence. </td></tr>
    <tr><td class="paramname">Identity</td><td>Type for the identity value. </td></tr>
    <tr><td class="paramname">Transformer</td><td>Callable type for the transformation operation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable type for the combination operation of the reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ex</td><td>Execution policy object. </td></tr>
    <tr><td class="paramname">firsts</td><td>Tuple of iterators to the first elements in the input sequences. </td></tr>
    <tr><td class="paramname">last</td><td>Iterator to one past the end of the input sequence. </td></tr>
    <tr><td class="paramname">identity</td><td>Identity value for the combination operation. </td></tr>
    <tr><td class="paramname">transf_op</td><td>Transformation operation. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combination operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result of the map/reduce operation. </dd></dl>

</div>
</div>
<a id="ga1b61366b1688dc6d2d8dc6cbf785bf10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1b61366b1688dc6d2d8dc6cbf785bf10">&#9670;&nbsp;</a></span>map_reduce() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Execution , typename ... InputIterators, typename Identity , typename Transformer , typename Combiner , requires_iterators&lt; InputIterators... &gt;  = 0&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::map_reduce </td>
          <td>(</td>
          <td class="paramtype">const Execution &amp;&#160;</td>
          <td class="paramname"><em>ex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::tuple&lt; InputIterators... &gt;&#160;</td>
          <td class="paramname"><em>firsts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Identity &amp;&amp;&#160;</td>
          <td class="paramname"><em>identity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke md_map-reduce on a data sequence. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Execution</td><td>Execution type. </td></tr>
    <tr><td class="paramname">InputIterators</td><td>Iterators types used for the input sequences. </td></tr>
    <tr><td class="paramname">Identity</td><td>Type for the identity value. </td></tr>
    <tr><td class="paramname">Transformer</td><td>Callable type for the transformation operation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable type for the combination operation of the reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ex</td><td>Execution policy object. </td></tr>
    <tr><td class="paramname">firsts</td><td>Tuple of iterators to the first elements in the input sequences. </td></tr>
    <tr><td class="paramname">size</td><td>Size of the input sequence to be process. </td></tr>
    <tr><td class="paramname">identity</td><td>Identity value for the combination operation. </td></tr>
    <tr><td class="paramname">transf_op</td><td>Transformation operation. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combination operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result of the map/reduce operation. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
